﻿@using Grand.Core.Domain.Catalog;
@model ProductModel
<vc:admin-widget widget-zone="product_details_additional_top" additional-data="Model" />
<div class="form-horizontal" id="group-order">
    <div class="form-body">
        <div class="form-group">
            <admin-label asp-for="DisplayOrderCategory" />
            <div class="col-md-9 col-sm-9">
                <admin-input asp-for="DisplayOrderCategory" />
                <span asp-validation-for="DisplayOrderCategory"></span>
            </div>
        </div>
        <div class="form-group">
            <admin-label asp-for="DisplayOrderManufacturer" />
            <div class="col-md-9 col-sm-9">
                <admin-input asp-for="DisplayOrderManufacturer" />
                <span asp-validation-for="DisplayOrderManufacturer"></span>
            </div>
        </div>
        <div class="form-group">
            <admin-label asp-for="OnSale" />
            <div class="col-md-9 col-sm-9">
                <admin-input asp-for="OnSale" />
                <span asp-validation-for="OnSale"></span>
            </div>
        </div>
    </div>
</div>

<div class="form-horizontal" id="group-giftcard">
    <div class="form-body">
        <div class="form-group">
            <admin-label asp-for="IsGiftCard" />
            <div class="col-md-9 col-sm-9">
                <label class="mt-checkbox mt-checkbox-outline control control-checkbox">
                    <admin-input asp-for="IsGiftCard" />
                     <div class="control__indicator"></div>
                </label>
                <span asp-validation-for="IsGiftCard"></span>
            </div>
        </div>
        <div class="form-group" id="pnlGiftCardType">
            <admin-label asp-for="GiftCardTypeId" />
            <div class="col-md-9 col-sm-9">
                <admin-select asp-for="GiftCardTypeId" asp-items="((GiftCardType)Model.GiftCardTypeId).ToSelectList(Context)" />
                <span asp-validation-for="GiftCardTypeId"></span>
            </div>
        </div>
        <div class="form-group" id="pnlOverriddenGiftCardAmount">
            <admin-label asp-for="OverriddenGiftCardAmount" />
            <div class="col-md-9 col-sm-9">
                <admin-input asp-for="OverriddenGiftCardAmount" />
                <span asp-validation-for="OverriddenGiftCardAmount"></span>
            </div>
        </div>
    </div>
</div>

<div class="form-horizontal" id="group-downloads">
    <div class="form-body">
        <div class="form-group">
            <admin-label asp-for="IsDownload" />
            <div class="col-md-9 col-sm-9">
                <label class="mt-checkbox mt-checkbox-outline control control-checkbox">
                    <admin-input asp-for="IsDownload" />
                     <div class="control__indicator"></div>
                </label>
                <span asp-validation-for="IsDownload"></span>
            </div>
        </div>
        <div class="form-group" id="pnlDownloadFile">
            <admin-label asp-for="DownloadId" />
            <div class="col-md-9 col-sm-9">
                <admin-input asp-for="DownloadId" />
                <span asp-validation-for="DownloadId"></span>
            </div>
        </div>
        <div class="form-group" id="pnlUnlimitedDownloads">
            <admin-label asp-for="UnlimitedDownloads" />
            <div class="col-md-9 col-sm-9">
                <label class="mt-checkbox mt-checkbox-outline control control-checkbox">
                    <admin-input asp-for="UnlimitedDownloads" />
                     <div class="control__indicator"></div>
                </label>
                <span asp-validation-for="UnlimitedDownloads"></span>
            </div>
        </div>
        <div class="form-group" id="pnlMaxNumberOfDownloads">
            <admin-label asp-for="MaxNumberOfDownloads" />
            <div class="col-md-9 col-sm-9">
                <admin-input asp-for="MaxNumberOfDownloads" />
                <span asp-validation-for="MaxNumberOfDownloads"></span>
            </div>
        </div>
        <div class="form-group" id="pnlDownloadExpirationDays">
            <admin-label asp-for="DownloadExpirationDays" />
            <div class="col-md-9 col-sm-9">
                <admin-input asp-for="DownloadExpirationDays" />
                <span asp-validation-for="DownloadExpirationDays"></span>
            </div>
        </div>
        <div class="form-group" id="pnlDownloadActivationType">
            <admin-label asp-for="DownloadActivationTypeId" />
            <div class="col-md-9 col-sm-9">
                <admin-select asp-for="DownloadActivationTypeId" asp-items="((DownloadActivationType)Model.DownloadActivationTypeId).ToSelectList(Context)" />
                <span asp-validation-for="DownloadActivationTypeId"></span>
            </div>
        </div>
        <div class="form-group" id="pnlHasUserAgreement">
            <admin-label asp-for="HasUserAgreement" />
            <div class="col-md-9 col-sm-9">
                <label class="mt-checkbox mt-checkbox-outline control control-checkbox">
                    <admin-input asp-for="HasUserAgreement" />
                     <div class="control__indicator"></div>
                </label>
                <span asp-validation-for="HasUserAgreement"></span>
            </div>
        </div>
        <div class="form-group" id="pnlUserAgreementText">
            <admin-label asp-for="UserAgreementText" />
            <div class="col-md-9 col-sm-9">
                <admin-textarea asp-for="UserAgreementText"></admin-textarea>
                <span asp-validation-for="UserAgreementText"></span>
            </div>
        </div>
        <div class="form-group" id="pnlHasSampleDownload">
            <admin-label asp-for="HasSampleDownload" />
            <div class="col-md-9 col-sm-9">
                <label class="mt-checkbox mt-checkbox-outline control control-checkbox">
                    <admin-input asp-for="HasSampleDownload" />
                     <div class="control__indicator"></div>
                </label>
                <span asp-validation-for="HasSampleDownload"></span>
            </div>
        </div>
        <div class="form-group" id="pnlSampleDownloadFile">
            <admin-label asp-for="SampleDownloadId" />
            <div class="col-md-9 col-sm-9">
                <admin-input asp-for="SampleDownloadId" />
                <span asp-validation-for="SampleDownloadId"></span>
            </div>
        </div>
    </div>
</div>
<div class="form-horizontal" id="group-recurring">
    <div class="form-body">
        <div class="form-group">
            <admin-label asp-for="IsRecurring" />
            <div class="col-md-9 col-sm-9">
                <label class="mt-checkbox mt-checkbox-outline control control-checkbox">
                    <admin-input asp-for="IsRecurring" />
                     <div class="control__indicator"></div>
                </label>
                <span asp-validation-for="IsRecurring"></span>
            </div>
        </div>
        <div class="form-group" id="pnlCycleLength">
            <admin-label asp-for="RecurringCycleLength" />
            <div class="col-md-9 col-sm-9">
                <admin-input asp-for="RecurringCycleLength" />
                <span asp-validation-for="RecurringCycleLength"></span>
            </div>
        </div>
        <div class="form-group" id="pnlCyclePeriod">
            <admin-label asp-for="RecurringCyclePeriodId" />
            <div class="col-md-9 col-sm-9">
                <admin-select asp-for="RecurringCyclePeriodId" asp-items="((RecurringProductCyclePeriod)Model.RecurringCyclePeriodId).ToSelectList(Context)" />
                <span asp-validation-for="RecurringCyclePeriodId"></span>
            </div>
        </div>
        <div class="form-group" id="pnlTotalCycles">
            <admin-label asp-for="RecurringTotalCycles" />
            <div class="col-md-9 col-sm-9">
                <admin-input asp-for="RecurringTotalCycles" />
                <span asp-validation-for="RecurringTotalCycles"></span>
            </div>
        </div>
    </div>
</div>

<div class="form-horizontal" id="group-required-other-products">
    <div class="form-body">
        <div class="form-group">
            <admin-label asp-for="RequireOtherProducts" />
            <div class="col-md-9 col-sm-9">
                <label class="mt-checkbox mt-checkbox-outline control control-checkbox">
                    <admin-input asp-for="RequireOtherProducts" />
                     <div class="control__indicator"></div>
                </label>
                <span asp-validation-for="RequireOtherProducts"></span>
            </div>
        </div>
        <div class="form-group" id="pnlRequiredProductIds">
            <admin-label asp-for="RequiredProductIds" />
            <div class="col-md-9 col-sm-9">
                <admin-input asp-for="RequiredProductIds" />
                <span asp-validation-for="RequiredProductIds"></span>
                <span id="required-products-check-progress" style="display: none;" class="please-wait">@T("Common.Wait...")</span>
                <input type="submit" id="btnAddNewRequiredProduct" value="@T("Admin.Catalog.Products.Fields.RequiredProductIds.AddNew")"
                       onclick="javascript:OpenWindow('@(Url.Action("RequiredProductAddPopup", "Product",
                                                       new { btnId = "btnRefreshRequiredProducts", productIdsInput = "RequiredProductIds" }))', 800, 800, true); return false;" class="k-button" />
                <input type="submit" id="btnRefreshRequiredProducts" style="display: none" />
                <script type="text/javascript">
                    $(document).ready(function () {
                        $('#btnRefreshRequiredProducts').click(function () {
                            loadRequiredProductFriendlyNames();
                            return false;
                        });
                    });
                </script>
                <span id="required-product-names" class="required-product-names"></span>
            </div>
        </div>
        <div class="form-group" id="pnlAutomaticallyAddRequiredProducts">
            <admin-label asp-for="AutomaticallyAddRequiredProducts" />
            <div class="col-md-9 col-sm-9">
                <label class="mt-checkbox mt-checkbox-outline control control-checkbox">
                    <admin-input asp-for="AutomaticallyAddRequiredProducts" />
                     <div class="control__indicator"></div>
                </label>
                <span asp-validation-for="AutomaticallyAddRequiredProducts"></span>
            </div>
        </div>
    </div>
</div>
<vc:admin-widget widget-zone="product_details_additional_bottom" additional-data="Model" />